package com.resou.reader.reader.adpter;

import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.resou.reader.R;
import com.resou.reader.api.entry.SubSidyBean;
import com.resou.reader.api.entry.SubSidyDetailBean;

import java.util.List;

public class SubSidyExplanAdapter extends BaseQuickAdapter<SubSidyDetailBean.SubsidyExplainBean, BaseViewHolder> {
    public SubSidyExplanAdapter(int layoutResId, @Nullable List<SubSidyDetailBean.SubsidyExplainBean> data) {
        super(layoutResId, data);
    }

    public SubSidyExplanAdapter(@Nullable List<SubSidyDetailBean.SubsidyExplainBean> data) {
        super(data);
    }

    @Override
    protected void convert(BaseViewHolder helper, SubSidyDetailBean.SubsidyExplainBean item) {
        helper.setText(R.id.tvTitle, item.getExplainHeadline() + "")
                .setText(R.id.tvContent, item.getExplainConetnt() + "");
    }
}
